#!/bin/sh
/usr/local/bin/gnuplot -persist << EOF
set terminal x11 font "Helvetica,18"
set xlabel "Energy" font "Helvetica,18"
set ylabel "Count / bin" font "Helvetica,18"
set xrange [0:127]
set title "Energy Spectra" font "Helvetica,18"
plot "$1" using 1 with steps title "1", \
 "$1" using 2 with steps title "2", \
 "$1" using 3 with steps title "3", \
 "$1" using 4 with steps title "4", \
 "$1" using 5 with steps title "5", \
 "$1" using 6 with steps title "6", \
 "$1" using 7 with steps title "7", \
 "$1" using 8 with steps title "8"
EOF
